<?php

class m130703_161453_add_table_for_help_pages extends CDbMigration
{
	public function up()
	{
		$this->createTable('pages', array(
			'id' => 'pk',
			'type' => 'varchar(10) not null',
			'language' => 'varchar(2) not null',
			'key' => 'varchar(50) not null',
			'title' => 'varchar(255) not null',
			'content' => 'TEXT'
		), 'ENGINE = InnoDB
			DEFAULT CHARACTER SET = utf8
			COLLATE = utf8_unicode_ci');
		return true;
	}

	public function down()
	{
		$this->dropTable("pages");
		return true;
	}
}

